package com.sky.service;

import com.sky.dao.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;
import com.sky.vo.StatisticVO;

public interface OrderService {

    OrderSubmitVO submit(OrderDTO orderDTO);

    PageResult historyOrders(HistoryOrdersPageDTO historyOrdersPageDTO);

    OrderVO orderDetail(Long id);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    void paySuccess(String outTradeNo);

    void cancel(CancelDTO cancelDTO);

    void repetition(Long id);

    PageResult conditionSearch(OrderQueryDTO orderQueryDTO);


    StatisticVO statistics();

    void confirm(ConfirmDTO confirmDTO);

    void rejection(RejectionDTO rejectionDTO);

    void delivery(Long id);

    void complete(Long id);
}
